<div class="row">
    <div class="col-xs-12">
        <div class="box box-primary">
            <div class="box-header">
                <h3 class="box-title">老师组</h3>

                <div class="box-tools">
                    <div class="input-group input-group-sm" style="width: 300px;">
                        <input type="text" name="table_search" class="form-control pull-right" placeholder="Search">

                        <div class="input-group-btn">
                            <button type="submit" class="btn btn-default" style="margin-right: 10px"><i class="fa fa-search"></i></button>
                            <button class="btn btn-success btn-sm" data-url="{{ url('/admin/groups/create') }}" onclick="jumpfun(this)">添加</button>
                        </div>
                    </div>
                </div>
            </div>
            <!-- /.box-header -->
            <div class="box-body table-responsive no-padding">
                <table class="table table-hover">
                    <tr>
                        <th>ID</th>
                        <th>老师组名</th>
                        <th>课时费</th>
                        <th>创建时间</th>
                        <th>操作</th>
                    </tr>
                    @foreach($groups as $group)
                    <tr>
                        <td>{{ $group->id }}</td>
                        <td>{{ $group->name }}</td>
                        <td>{{ $group->teach_value }}</td>
                        <td>{{ $group->created_at }}</td>
                        <td>
                            <a style="margin:3px;" href="javascript:void(0)" data-url="{{ url('/admin/groups', $group->id.'/edit') }}" onclick="jumpfun(this)" class="X-Small btn-xs text-success "><i class="fa fa-edit"></i> 编辑</a>
                            <a style="margin:3px;" href="javascript:void(0)" data-url="{{ url('/admin/groups', $group->id) }}" onclick="delfun(this)" class="X-Small btn-xs text-danger "><i class="fa fa-remove"></i> 删除</a>
                        </td>
                    </tr>
                    @endforeach
                </table>
            </div>
            <div class="box-footer clearfix">
                <ul class="pagination pagination-sm no-margin pull-right">
                </ul>
            </div>
            <!-- /.box-body -->
        </div>
        <!-- /.box -->
    </div>
</div>